/**
 * @author chengqige
 * @copyright turing@大连大学图灵工作室
 * @version 1.0
 * @updated 2022/3/13 23:29
 * @description 支持cookie跨域，cookie跨域前端也需要做处理，使用axios设置withCredits:true,使用xhr设置属性withCredits=true
 */
const cookie = function (option) {
    return function (req, res, next) {
        res.set('Access-Control-Allow-Origin','*')
        res.set('Access-Control-Allow-Credentials', true)
        next()
    }
}
module.exports = cookie
